// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package com.ideasindustry.photoontaje.service;
/**
 * @see com.ideasindustry.photoontaje.service.Color
 */
public class ColorDaoImpl
    extends com.ideasindustry.photoontaje.service.ColorDaoBase
{
    /**
     * @see com.ideasindustry.photoontaje.service.ColorDao#toColorVO(com.ideasindustry.photoontaje.service.Color, com.ideasindustry.photoontaje.api.ColorVO)
     */
    public void toColorVO(
        com.ideasindustry.photoontaje.service.Color source,
        com.ideasindustry.photoontaje.api.ColorVO target)
    {
        // @todo verify behavior of toColorVO
        super.toColorVO(source, target);
    }


    /**
     * @see com.ideasindustry.photoontaje.service.ColorDao#toColorVO(com.ideasindustry.photoontaje.service.Color)
     */
    public com.ideasindustry.photoontaje.api.ColorVO toColorVO(final com.ideasindustry.photoontaje.service.Color entity)
    {
        // @todo verify behavior of toColorVO
        return super.toColorVO(entity);
    }


    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private com.ideasindustry.photoontaje.service.Color loadColorFromColorVO(com.ideasindustry.photoontaje.api.ColorVO colorVO)
    {
        // @todo implement loadColorFromColorVO
        throw new java.lang.UnsupportedOperationException("com.ideasindustry.photoontaje.service.loadColorFromColorVO(com.ideasindustry.photoontaje.api.ColorVO) not yet implemented.");

        /* A typical implementation looks like this:
        com.ideasindustry.photoontaje.service.Color color = this.load(colorVO.getId());
        if (color == null)
        {
            color = com.ideasindustry.photoontaje.service.Color.Factory.newInstance();
        }
        return color;
        */
    }

    
    /**
     * @see com.ideasindustry.photoontaje.service.ColorDao#colorVOToEntity(com.ideasindustry.photoontaje.api.ColorVO)
     */
    public com.ideasindustry.photoontaje.service.Color colorVOToEntity(com.ideasindustry.photoontaje.api.ColorVO colorVO)
    {
        // @todo verify behavior of colorVOToEntity
        com.ideasindustry.photoontaje.service.Color entity = this.loadColorFromColorVO(colorVO);
        this.colorVOToEntity(colorVO, entity, true);
        return entity;
    }


    /**
     * @see com.ideasindustry.photoontaje.service.ColorDao#colorVOToEntity(com.ideasindustry.photoontaje.api.ColorVO, com.ideasindustry.photoontaje.service.Color)
     */
    public void colorVOToEntity(
        com.ideasindustry.photoontaje.api.ColorVO source,
        com.ideasindustry.photoontaje.service.Color target,
        boolean copyIfNull)
    {
        // @todo verify behavior of colorVOToEntity
        super.colorVOToEntity(source, target, copyIfNull);
    }

}